﻿<%@ Page Title="" Language="VB" MasterPageFile="~/MainLayout.master" AutoEventWireup="false" CodeFile="MobileUser.aspx.vb" Inherits="MobileUser" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script type="text/javascript" src="scripts/overlib.js"></script>
    <asp:Label ID="lblStaffUID" runat="server" Visible="false" />
    <asp:Label ID="lblStaffType" runat="server" Visible="false" />
    <div>
        <h1>Mobile Users</h1>
    </div>
    <div runat="server" id="divError" class="msg-box-error" visible="false" enableviewstate="false">

        <span class="title">Error</span><br />
        <asp:Label ID="lblMsgError" runat="server" Text="ERROR" />
    </div>
    <div runat="server" id="divSuccessful" class="msg-box-success" visible="false" enableviewstate="false">
        <span class="title">Successful</span><br />
        <asp:Label ID="lblMsgSuccessful" runat="server" Text="Success" />
    </div>
    <asp:Panel ID="pnlFilter" runat="server">

        <table class="SearchFilter" width="100%" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="30">&nbsp;</td>
                    <td width="120">Email</td>
                    <td width="250">
                        <asp:TextBox ID="txtEmail" runat="server" Width="300px" /></td>
                    <td width="30">&nbsp;</td>
                    <td width="120">&nbsp;</td>
                    <td width="250">
                        &nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td>Name</td>
                    <td>
                        <asp:TextBox ID="txtName" runat="server" Width="300px" /></td>
                    <td>&nbsp;</td>
                    <td>Phone</td>
                    <td>
                        <asp:TextBox ID="txtPhone" runat="server" Width="300px" />
                    </td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td>Create&nbsp; Date</td>
                    <td colspan="4">
                        <asp:TextBox ID="txtCreatedDateMin" runat="server" Width="300px" /><asp:ImageButton runat="Server" ID="imgToDateCal" AlternateText="Click to show calendar" ImageUrl="~/images/style01/Btn-calendar.png" />
                        <cc1:CalendarExtender ID="ceToDate" runat="server" Format="dd-MMM-yyyy" TargetControlID="txtCreatedDateMin" PopupButtonID="imgToDateCal" />
                        to
                        <asp:TextBox ID="txtCreatedDateMax" runat="server" Width="300px" />
                        <asp:ImageButton runat="Server" ID="ImageButton1" AlternateText="Click to show calendar" ImageUrl="~/images/style01/Btn-calendar.png" />
                        <cc1:CalendarExtender ID="CalendarExtender1" runat="server" Format="dd-MMM-yyyy" TargetControlID="txtCreatedDateMax" PopupButtonID="ImageButton1" />
                        &nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td>Status Delete</td>
                    <td>
                        <asp:DropDownList ID="ddlStatusDelete" runat="server" Width="300px">
                            <asp:ListItem Text="No" Value="0" Selected="True" />
                            <asp:ListItem Text="Yes" Value="1" />
                        </asp:DropDownList>

                        &nbsp;

                    </td>
                    <td>&nbsp;</td>
                    <td></td>
                    <td></td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td colspan="5" align="right">
                        <div style="border-top: 1px solid #c2c2c2; height: 20px; padding-top: 10px;">
                            <asp:Button ID="btnSearch" runat="server" Text="Search" CssClass="search-btn" Width="80" />
                            <asp:Button ID="btnResetSearchFilter" runat="server" Text="Reset" CssClass="search-btn" Width="60" />
                        </div>
                    </td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
            </tbody>

        </table>

        <br />


    </asp:Panel>

        <table class="ResultPanelContainer" border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
        <td>
        
            <table class="ResultPanelHeader" border="0" width="100%">
                <tr>
                    <td style="width: 232px"><asp:label ID="lblHeadNoOfItem" runat="server" Text="0" />&nbsp;items total</td>
                    <td align="right">
                        Number of entries per page : <asp:LinkButton ID="lnkHead10Item" runat="server" Text="10" />&nbsp;<asp:LinkButton ID="lnkHead25Item" runat="server" Text="25" />&nbsp;<asp:LinkButton ID="lnkHead100Item" runat="server" Text="100" />&nbsp;<asp:LinkButton ID="lnkHead150Item" runat="server" Text="150" />
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>
           
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="ResultPanelDataDisplay" id="PropertyList">
            <thead >
                <tr>
                    <th scope="col"><strong><asp:LinkButton ID="lnkName" runat="server" Text="Name▲" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col"><strong><asp:LinkButton ID="lnkPhone" runat="server" Text="Phone▲" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col"><strong><asp:LinkButton ID="lnkEmail" runat="server" Text="Email▲" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col"><strong><asp:LinkButton ID="lnkCreatedDate" runat="server" Text="Creation Date▼" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col"></th>
                </tr>
            </thead> 
            <tbody>
                <asp:Repeater ID="repUpload" runat="server">
                    <ItemTemplate>
                        <tr>                       
                                <asp:Label ID="lblRepId" runat="server" Text='<%#Container.dataitem("Id").tostring %>' Visible="false" />
                            <td><asp:LinkButton ID="lblRepName" runat="server" Text='<%#Container.DataItem("Name").ToString%>' CommandArgument='<%#Container.DataItem("Id").ToString%>' CommandName="ViewList" /></td>
                                <td><asp:LinkButton ID="lblRepPhone" runat="server" Text='<%#Container.DataItem("HandPhone").ToString%>' CommandArgument='<%#Container.DataItem("Id").ToString%>' CommandName="ViewList" /></td>
                                <td><asp:LinkButton ID="lblRepEmail" runat="server" Text='<%#Container.DataItem("Email").ToString%>' CommandArgument='<%#Container.DataItem("Id").ToString%>' CommandName="ViewList" /></td>
                                <td><asp:LinkButton ID="lblRepCreatedDate" runat="server" Text='<%# Bind("CreateDate", "{0:dd-MMM-yyyy}")%>' CommandArgument='<%#Container.DataItem("Id").ToString%>' CommandName="ViewList" /></td>
                                                                    <td>
                                            <asp:ImageButton ID="imgRepDelete" runat="server" ImageUrl="~/images/style01/DeleteButton.png" Style="vertical-align: middle;" AlternateText="Delete" CommandName="DeleteItem" CommandArgument='<%# DataBinder.Eval(Container,"ItemIndex") %>' />
                                            <cc1:ConfirmButtonExtender ID="cbe" runat="server" TargetControlID="imgRepDelete" ConfirmText="Are you sure you want to delete?" />
                                        </td>                          
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
               </tbody>
            </table>
            
      </td>
    </tr>
    <tr>
        <td>
            <table class="ResultPanelFooter" width="100%">
                <tr>
                    <td ><asp:label ID="lblFootNoOfItem" runat="server" Text="0" />&nbsp; items total</td>
                    <td align="center" valign="middle">
                        <asp:Panel ID="pnlNavigation" runat="server" style="text-align:center; vertical-align:middle;">
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-first.png"   ID="btnMoveFirst"  runat="server" Width="28"  Height="18" style="vertical-align:middle;"/>&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-back.png"    ID="btnPrevious"   runat="server" Width="28"  Height="18" style="vertical-align:middle;"/>&nbsp;
                                <asp:TextBox ID="txtPageNo" runat="server" Text="1" Height="12" Width="28" Font-Size="10px" style="text-align:center; vertical-align:middle;" onkeypress="return isNumberKeyOnly(event)" onpaste="return isNumberKeyOnly(event)" />&nbsp;
                                <asp:Label ID="lblTotalPage" runat="server" Height="20" Font-Size="10px" style="vertical-align: middle;"/>&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-go.png"      ID="btnGo"          runat="server"  Width="28" Height="18" style="vertical-align:middle;"/>&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-foward.png"  ID="btnNext"        runat="server"  Width="28" Height="18" style="vertical-align:middle;"/>&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-last.png"    ID="btnMoveLast"    runat="server"  Width="28" Height="18" style="vertical-align:middle;"/>
                                <asp:Label ID="lblMaxPageCount" runat="server" Visible="false" Height="20" Font-Size="10px" style="vertical-align:middle;"/>
                      </asp:Panel>
                    </td>
                    <td align="right">
                        Number of entries per page : <asp:LinkButton ID="lnkFoot10Item" runat="server" Text="10" />&nbsp;<asp:LinkButton ID="lnkFoot25Item" runat="server" Text="25" />&nbsp;<asp:LinkButton ID="lnkFoot100Item" runat="server" Text="100" />&nbsp;<asp:LinkButton ID="lnkFoot150Item" runat="server" Text="150" />
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
    <asp:Label ID="lblhidSortType" runat="server" Visible="False" Text=" ORDER BY CreateDate DESC, Email" />
</asp:Content>

